const mongoose = require('mongoose')
const schema = new mongoose.Schema({
    name: {
        type: String,
        required: [true, "name 是必须的"],
    },
    artist: {
        type: String,
        required: [true, "artist 是必须的"],
    },
    m_id: {
        type: String,
        required: [true, "m_id 是必须的"]
    },
    content: {
        type: String,
        required: [true, "content 是必须的"]
    },
    core: {
        type: String,
        required: [true, "core 是必须的"]
    },
    pic_url: {
        type: String,
        required: [true, "pic_url 是必须的"]
    },
})
module.exports = mongoose.model('News', schema)